<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link rel="stylesheet" href="css/common.css" type="text/css" />

<link href="css/adminstyle.css" rel="stylesheet" type="text/css">

<title>管理区域</title>

<script src="js/js.js"></script>

<script  language="javascript" type="text/javascript" src="js/jquery-1.9.1.min.js"></script>

<script>

function delc(id){

	if(confirm('确认要删除此栏目，将删除所属子栏目及信息'))	{

		self.location.href='course_delete.html?id='+id;

	}

}

function submits1(value){

	var check_flg = false;

	$("input:checkbox[name='id[]']:checked").each(function(){

            check_flg = true; 

    })



    if(check_flg==true){

		document.getElementById('form').submit();

	}else{

		alert('请选中相应的课程进行操作');        	

    }

}

</script>

</head>



<body>
<div id="man_zone">

<div style="background-color:#FFFFFF ">

<div class="search_condition" >

<form method="get">
&nbsp;
教材名称<input name="theme" value="<?=getParamValue('theme')?>" type="text" />
&nbsp;
编号  <input name="serial_number" type="text" value="<?=getParamValue('serial_number')?>"  />
&nbsp;
教材分类<select name="type">
 <option value=""  >请选择</option>
<?
foreach ($course_type as $k=>$v){
?>
  <option value="<?=$k?>"  <? if ($k==getParamValue('type')){ echo 'selected="selected"'; } ?>><?=$v?></option>
<?
}
?>
</select>
&nbsp;
教材出版社<select name="book_press">
 <option value=""  >请选择</option>
	<?=page_modifier_options($book_press_pair,getParamValue("book_press",""))?>
 </select>
    <input  class="PublicBot"  name="search" type="submit" value="检索" />
     <input class="PublicBot" name="add" type="button" onclick="window.location.href='course_add.html'" value="添加" />
<br> 
&nbsp;
教材等级
  <select name="level">

  		<option value=""  >请选择</option>	

		<?=page_modifier_options($level,getParamValue("level",""))?>

      </select>

&nbsp;&nbsp;
      状态  <select name="status">
      <option value=""  >请选择</option>

        <option value="1" <?  if (getParamValue('status')==1){ echo'selected="selected"'; } ?> >上架</option>

        <option value="2" <?  if (getParamValue('status')==2){ echo'selected="selected"'; } ?> >准备中</option>

         <option value="3" <?  if (getParamValue('status')==3){ echo'selected="selected"'; } ?> >下架</option>

      </select>     
</form>



</div>

<br>



<form method="get" id="form" action="course_delete.html">

  <table width="98%" border="0" align="center"  cellpadding="3" cellspacing="1" class="tableborder">

    <tr class="header">

    <td width="5%"></td>

      <td width="15%">教材名称</td>

      <td width="10%">编号</td>

      <td width="10%">教材分类</td>

      <td width="10%">教材等级</td>

      <td width="10%">状态</td>

      <td align="center"  width="20%">编辑</td>

    </tr>

    <?

    foreach($list as $v){

	?>

     <tr  bgcolor="#FFFFFF">

          <td align="center"><input type="checkbox" name="id[]" id="checkbox" value="<?=$v['id']?>"></td>

      <td ><?=$v['theme']?></td>

      <td align="center"><?=$v['serial_number']?></td>

      <td align="center"><?=getStr($course_type, $v['type'])?></td>

      <td align="center"><?=getStr($level, $v['level'])?></td>

      <td align="center"><?=getStr($status,$v['status'])?></td>



      <td align="center">

      <a href="chapter_lists.html?course_id=<?=$v['id']?>">查看章节</a>

      &nbsp;&nbsp;&nbsp;

      <a onclick=delc(<?=$v['id']?>) 

    href="javaScript:void(0);">删除</a>　　<a href="course_add.html?id=<?=$v['id']?>">修改</a></td>

    </tr> 

    <?

	}

	?>

  <tr  bgcolor="#FFFFFF">

 <td align="center"><input type="checkbox" name="chkall" id="checkbox"  onClick="CheckAll(this.form)"></td>

 <td colspan="6"><input type="button" class="PublicBot" name="delete" id="button" value="删除" onClick="submits1()">

 &nbsp;&nbsp;&nbsp;

 <?  echo $page; ?>

 </td>

 </tr>

  </table>

 </form>

</div>
</div>


</body>

</html>

